package com.rtp.transformer.parser.model;

import java.util.ArrayList;
import java.util.List;

import com.rtp.transformer.parser.filter.ReaderParseFilter;
import com.rtp.transformer.parser.filter.WriterParseFilter;
 

/**
 * The pattern to fill with root node in husband config file
 * include ReaderParseFilter list and WriterParseFilter list
 * @author bertzhao
 *
 */
public class FormatConfig {
	 
	private Integer from=new Integer(0);
	private int end;
	private String endMark = "\r\n";
	private List<ReaderParseFilter> readerParseFilterList = new ArrayList<ReaderParseFilter>();
	private List<WriterParseFilter> writerParseFilterList = new ArrayList<WriterParseFilter>();
	private Integer gap=new Integer(0);
	private String pagination; 
	 
	public Integer getFrom() {
		return from;
	}
	public void setFrom(Integer from) {
		this.from = from;
	}
	public String getEndMark() {
		return endMark;
	}
	public void setEndMark(String endMark) {
		this.endMark = endMark;
	}
	 
	 
	public List<ReaderParseFilter> getReaderParseFilterList() {
		return readerParseFilterList;
	}
	
	public void addReaderParseFilterToList(ReaderParseFilter f) {
		getReaderParseFilterList().add(f);
	}
	
	public List<WriterParseFilter> getWriterParseFilterList() {
		return writerParseFilterList;
	}
	
	public void addWriterParseFilterToList(WriterParseFilter f) {
		getWriterParseFilterList().add(f);
	}
	 
	public Integer getGap() {
		return gap;
	}
	public void setGap(Integer gap) {
		this.gap = gap;
	}
	public String getPagination() {
		return pagination;
	}
	public void setPagination(String pagination) {
		this.pagination = pagination;
	}
	public int getEnd() {
		return end;
	}
	public void setEnd(int end) {
		this.end = end;
	}	 
	 
	
}
